import java.util.ArrayList;
import java.util.List;
import java.util.Date;
// 订单类
class Order {
    private Date createDate;
    private String status; // CREATE、PAID、SHIPPING、DELIVERED、CANCEL
    private List<OrderDetail> orderDetails = new ArrayList<>();
    private Payment payment;

    public Order(Date createDate, String status) {
        this.createDate = createDate;
        this.status = status;
    }

    public void addOrderDetail(OrderDetail orderDetail) {
        orderDetails.add(orderDetail);
    }

    public void setPayment(Payment payment) {
        this.payment = payment;
    }
    // 可根据需求添加其他方法
}